const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // token
  username: state => state.user.userInfo.username, // username
  userId: state => state.user.userInfo.id, // 用户id
  id: state => state.user.userInfo.companyId, // 企业id
  staffPhoto: state => state.user.userInfo.staffPhoto, // username
  routes: state => state.permission.routes // 菜单 routes

}
export default getters
